<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>demo-组合式API</title>
</head>

<body>
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>

  <div id="Application">
    <input type="text" v-model="a" />{{a}}
    <input type="text" v-model="b" />{{b}}
  </div>
  <script>
    const App = Vue.createApp({
      setup() {
        const a = Vue.ref("");
        const b = Vue.ref("");
        return {
          a,
          b,
        };
      },
    });
    App.mount("#Application");
  </script>
</body>

</html>